From: SymphonySimper <164710-SymphonySimper@users.noreply.gitlab.gnome.org> Date: Sat, 22 Nov 2025 13:01:05 +0000 (+0530) Subject: messageList: Check if Message is expanded X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~44^2~85 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2f08a95b1efdef83a48e3d261937469070967d0a;p=gnome-shell.git messageList: Check if Message is expanded Check if Message is expanded in expand method, to prevent rerunning the expand animation when it's already expanded Part-of: --- diff --git a/js/ui/messageList.js b/js/ui/messageList.js index 85fc044d3..3a53bb101 100644 --- a/js/ui/messageList.js +++ b/js/ui/messageList.js @@ -613,6 +613,9 @@ export const Message = GObject.registerClass({ } expand(animate) { + if (this.expanded) + return; + this.expanded = true; this._actionBin.visible = !!this._actionBin.child;